<script>
    function myfun() {
        location.href = "${returnUrl}";
    }
    window.onload=myfun;//不要括号
</script>